package com.menggudf.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 诊断时生成的病历
 * @author Administrator
 *
 */
@Entity
@Table(name="sysCaseHistory")
public class SysCaseHistory implements Serializable{
	  private static final long serialVersionUID = 1412567970984547796L;
	   private int    id;//病历id
	   /**
	     * 用户编号
	     */
	    private String userCode;
	    /**
	     * 门诊用药
	     */
	    private String medicine;
	    /**
	     * 病症
	     */
	    private String sysptom;
	    /**
	     * 诊断结果
	     */
	    private String inquiryResult;
	    /**
	     * 诊断方案
	     */
	    private String scheme;
	    /**
	     * 创建时间
	     */
	    private Date createTime;
	    
	    /**
	     * 病历是否为诊断方案生成的病历
	     * 1：是 0：否
	     */
	    private int isSysCase;
	    
	    /**
	     * 过敏史
	     */
	    private String allergicHistory;//过敏史
	    
	    /**
	     * 现病史
	     */
	    private String presentIllness;
	    /**
	     * 既往史
	     */
	    private String previousHistory;
	    /**
	     * 个人史
	     */
	    private String personalHistory;
	    /**
	     * 家族史
	     */
	    private String familyHistory;
	    /**
	     * 婚育史
	     */
	    private String obstericalHistory;
	    /**
	     * 病历名称
	     */
	    private String caseHistoryName;
	    
	    private String menstrualHistory;
	    
       /**
         * 0:询问中，1：已反馈  
         */
        private int status;
        /**
         * 建议
         */
        private String advice;
        
        private String userName;
        
        private Integer role;
	    
	    @Id
	    @Column(name="id",unique=true,nullable=false)
	    @GeneratedValue(strategy=GenerationType.IDENTITY)
		public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
		@Column(name="userCode",nullable=false)
		public String getUserCode() {
			return userCode;
		}
		public void setUserCode(String userCode) {
			this.userCode = userCode;
		}
		@Column(name="medicine")
		public String getMedicine() {
			return medicine;
		}
		public void setMedicine(String medicine) {
			this.medicine = medicine;
		}
		@Column(name="sysptom")
		public String getSysptom() {
			return sysptom;
		}
		public void setSysptom(String sysptom) {
			this.sysptom = sysptom;
		}
		@Column(name="inquiryResult")
		public String getInquiryResult() {
			return inquiryResult;
		}
		public void setInquiryResult(String inquiryResult) {
			this.inquiryResult = inquiryResult;
		}
		@Column(name="scheme")
		public String getScheme() {
			return scheme;
		}
		public void setScheme(String scheme) {
			this.scheme = scheme;
		}
		@Column(name="createTime")
		public Date getCreateTime() {
			return createTime;
		}
		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
		}
		@Column(name="isSysCase")
		public int getIsSysCase() {
			return isSysCase;
		}
		public void setIsSysCase(int isSysCase) {
			this.isSysCase = isSysCase;
		}
		@Column(name="caseHistoryName")
		public String getCaseHistoryName() {
			return caseHistoryName;
		}
		public void setCaseHistoryName(String caseHistoryName) {
			this.caseHistoryName = caseHistoryName;
		}
		@Column(name="allergicHistory")
		public String getAllergicHistory() {
			return allergicHistory;
		}
		public void setAllergicHistory(String allergicHistory) {
			this.allergicHistory = allergicHistory;
		}
		@Column(name="presentIllness")
		public String getPresentIllness() {
			return presentIllness;
		}
		public void setPresentIllness(String presentIllness) {
			this.presentIllness = presentIllness;
		}
		@Column(name="previousHistory")
		public String getPreviousHistory() {
			return previousHistory;
		}
		public void setPreviousHistory(String previousHistory) {
			this.previousHistory = previousHistory;
		}
		@Column(name="personalHistory")
		public String getPersonalHistory() {
			return personalHistory;
		}
		public void setPersonalHistory(String personalHistory) {
			this.personalHistory = personalHistory;
		}
		@Column(name="familyHistory")
		public String getFamilyHistory() {
			return familyHistory;
		}
		public void setFamilyHistory(String familyHistory) {
			this.familyHistory = familyHistory;
		}
		@Column(name="obstericalHistory")
		public String getObstericalHistory() {
			return obstericalHistory;
		}
		public void setObstericalHistory(String obstericalHistory) {
			this.obstericalHistory = obstericalHistory;
		}
		@Column(name="menstrualHistory")
		public String getMenstrualHistory() {
			return menstrualHistory;
		}
		public void setMenstrualHistory(String menstrualHistory) {
			this.menstrualHistory = menstrualHistory;
		}
		@Column(name="userName")
        public String getUserName() {
            return userName;
        }
        public void setUserName(String userName) {
            this.userName = userName;
        }
        @Column(name="status")
        public int getStatus() {
            return status;
        }
        public void setStatus(int status) {
            this.status = status;
        }
        @Column(name="advice")
        public String getAdvice() {
            return advice;
        }
        public void setAdvice(String advice) {
            this.advice = advice;
        }
        
        @Column(name="role")
        public Integer getRole() {
            return role;
        }
        public void setRole(Integer role) {
            this.role = role;
        }
        
}
